import yagmail
import logging

def log(time):
    logging.basicConfig(filename=f'{time}.log',format='%(levelname)s -> %(asctime)s -> %(message)s',level=logging.DEBUG,filemode='a+')




def sed_emil(files):
    emil=yagmail.SMTP(user='1006142636@qq.com',password='hygnwdryluhsbgac',host='smtp.qq.com')
    emil.send(to='1006142636@qq.com',subject='报告',contents='金日报告请查看',attachments=files)

